# syntax=docker/dockerfile:1
FROM node:18-alpine
WORKDIR /webend
COPY package.json package-lock.json ./
RUN ( npm install cnpm -g --registry=https://registry.npmmirror.com ) && ( cnpm install )
COPY . .
ENV VUE_APP_API_SERVER=http://192.168.1.5:8080
ENV VUE_APP_MESSAGE_SERVER=ws://192.168.1.5:8085
CMD ["cnpm","run","serve"]
EXPOSE 8081